package com.banmoon.singleton;

/**
 * 静态内部类
 */
public class Singleton07 {

    private Singleton07() {
    }

    private static class  SingletonInstance{
        private static final Singleton07 instance = new Singleton07();
    }

    public static Singleton07 getInstance(){
        return SingletonInstance.instance;
    }

}
